package model;


public class User {
	public static final String manager = "manager";
	public static final String salesman = "salesman";
	public static final String member = "member";
	private int id;
	private String userName;
	private String password;
	private String type;
	public User(){
	}
	
	/**
	 * use to do select;
	 * @param id
	 * @param userName
	 * @param password
	 * @param type
	 */
	public User(int id ,String userName , String password,String type){
		this.id = id;
		this.userName = userName;
		this.password = password;
		this.type = type;
	}
	
	/**
	 * use to do insert;
	 * @param userName
	 * @param password
	 * @param type
	 */
	public User(String userName , String password,String type){
		this.userName = userName;
		this.password = password;
		this.type = type;
	}

	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}

	/**
	 * @return the userName
	 */
	public String getUserName() {
		return userName;
	}

	/**
	 * @param userName the userName to set
	 */
	public void setUserName(String userName) {
		this.userName = userName;
	}

	/**
	 * @return the password
	 */
	public String getPassword() {
		return password;
	}

	/**
	 * @param password the password to set
	 */
	public void setPassword(String password) {
		this.password = password;
	}

	/**
	 * @return the type
	 */
	public String getType() {
		return type;
	}

	/**
	 * @param type the type to set
	 */
	public void setType(String type) {
		this.type = type;
	}

	/**
	 * @return the manager
	 */
	public static String getManager() {
		return manager;
	}

	/**
	 * @return the salesman
	 */
	public static String getSalesman() {
		return salesman;
	}

	/**
	 * @return the member
	 */
	public static String getMember() {
		return member;
	}

}
